import React from "react";
import { useNavigate, useParams } from "react-router-dom";
import { NavBar, Toast } from "react-vant";
const Index: React.FC = () => {
  let { word } = useParams();
  let navigate = useNavigate();
  let time = new Date().toTimeString();
  console.log(time);
  return (
    <div>
      <NavBar title="查看" leftText="返回" onClickLeft={() => navigate(-1)} />
      <div>病症:{word}</div>
      <div>{time}</div>
    </div>
  );
};
export default Index;
